import Taro, { Component } from '@tarojs/taro'
import { View, Text, Image } from '@tarojs/components'
import './index.css'
import { AtInput, AtGrid, AtList, AtListItem, AtSearchBar } from 'taro-ui'
import { $navigateTo, $redirectTo, getGlobalData, $navigateBack } from '../../../global';
import app from '../../../main.js'

export default class index extends Component {
  config = {
    navigationBarTitleText: '搜索结果'
  }
  yisheng = () => {
     $navigateTo("../sousuoyishengliebiao/index") 
    }
    yisheng1 = () =>{
      $navigateTo("../doctorpage/doctorpage")
    }
 
  shipin = () => {
    $navigateTo("../kepushipin/index") }
    shipin1 = () =>{
      $navigateTo("../shipinbofang/index")
    }

  wenzhang = () => {
    $navigateTo("../sousuowenzhangliebiao/index") }
    wenzhang1 = () =>{
      $navigateTo("../wenzhangyemian/index")
    }

  componentWillMount() { }

  componentDidMount() { }

  componentWillUnmount() { }

  componentDidShow() { }

  componentDidHide() { }
  constructor() {
    super(...arguments)
    this.state = {
      value: ''

    }
  }
  handleChange(value) {
    this.setState({
      value: value

    })
  }
  
  render() {
    return (
      <View className='index'>
        <View>
          {/* <AtGrid mode='rect' data={
 [
    {
      image:zh,
      value: '综合'
    },
    {
      image: xy,
      value: '响应时间'
    },
    {
      image:jg,
      value: '价格'
    },
  ]
} /> */}
        </View >
        <AtList onClick={this.yisheng}>
          <AtListItem className='b' onClick={this.yisheng}
            title='医生'
            extraText='更多'
            arrow='right'
          />
          <AtListItem onClick={this.yisheng1}
            title='黄小梦 主治医生'
            note='广州人民医院 眼科'
            extraText='¥100/次'
            arrow='right'
            thumb={getGlobalData('baseurl')+'img/88bed02de4bb674e08aa00b2fdbca6cc.jpg'}
          />
          <AtListItem onClick={this.yisheng1}
            title='李小红 主治医生'
            note='广州人民医院 外科'
            extraText='¥100/次'
            arrow='right'
            thumb={getGlobalData('baseurl')+'img/1061ce3f2f0a36cb8e8f058a5c8d82ee.jpg'}
          />
        </AtList>
        <View className='c'>
          <AtList >
            <AtListItem onClick={this.shipin} className='b'
              title='视频'
              extraText='更多'
              arrow='right'
            />
            <AtListItem onClick={this.shipin1} className='f'
              title='眼部保护视频'
              note='这是一部以科普眼部保护的视频'
              arrow='right'
              thumb={getGlobalData('baseurl')+'img/4606fb25e4a503cb7057863ca527bbc7.jpg'}
            />
            <AtListItem onClick={this.shipin1} className='f'
              title='眼部护理'
              note='这是一部指导如何进行眼部护理的视频'
              arrow='right'
              thumb={getGlobalData('baseurl')+'img/b73c7954184a345438301249472a2d21.jpg'}
            />
          </AtList>
          <AtList >
            <AtListItem onClick={this.wenzhang} className='b'
              title='文章'
              extraText='更多'
              arrow='right'
            />
            <AtListItem onClick={this.wenzhang1} className='f'
              title=' 保护眼睛三要三不要'
              note='保护眼睛三要三不要 - 保护眼睛三要三不要 三要 一、要注意用眼卫生......'
              arrow='right'
            />
            <AtListItem onClick={this.wenzhang1} className='f'
              title=' 保护眼睛的6种方法'
              note='保护眼睛的6种方法 - 保护眼睛的 6 种方法 熨目 即用手掌熨目。每天......'
              arrow='right'
            />
          </AtList>
        </View>
        <View>

        </View>
      </View>
    )

  }


}

